package cn.net.ait.hr.entity;

import org.guiceside.persistence.entity.IdEntity;
import org.guiceside.persistence.entity.Tracker;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: zhenjia
 * Date: 2009-3-27
 * Time: 21:30:50
 * To change this template use File | Settings | File Templates.
 */
/*@Entity
@Table(name = "HR_ORGANIZATION")
*/
public class HrOrganization extends IdEntity implements Tracker {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String orgId;

    private String orgNameZh;

    private String orgNameEn;

    private String orgNameKo;

    private String orgType;

    private Integer orgLevel;

    private Integer orgOrder;

    private Date startedDate;

    private Date endedDate;
    
    private Date created;

    private String createdBy;

    private Date updated;

    private String updatedBy;

    private String useYn;

@Id
	@GeneratedValue(generator = "SEQ_HR_ORGANIZATION")
	@GenericGenerator(name = "SEQ_HR_ORGANIZATION", strategy = "seqhilo", parameters = { @Parameter(name = "sequence", value = "SEQ_HR_ORGANIZATION") })
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "ORG_ID")
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Column(name = "ORG_NAME_ZH")
    public String getOrgNameZh() {
        return orgNameZh;
    }

    public void setOrgNameZh(String orgNameZh) {
        this.orgNameZh = orgNameZh;
    }

    @Column(name = "ORG_NAME_EN")
    public String getOrgNameEn() {
        return orgNameEn;
    }

    public void setOrgNameEn(String orgNameEn) {
        this.orgNameEn = orgNameEn;
    }

    @Column(name = "ORG_NAME_KO")
    public String getOrgNameKo() {
        return orgNameKo;
    }

    public void setOrgNameKo(String orgNameKo) {
        this.orgNameKo = orgNameKo;
    }

    @Column(name = "ORG_TYPE")
    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    @Column(name = "ORG_LEVEL")
    public Integer getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(Integer orgLevel) {
        this.orgLevel = orgLevel;
    }


    @Column(name = "ORG_ORDER")
    public Integer getOrgOrder() {
        return orgOrder;
    }

    public void setOrgOrder(Integer orgOrder) {
        this.orgOrder = orgOrder;
    }

    @Column(name = "STARTED_DATE")
    public Date getStartedDate() {
        return startedDate;
    }

    public void setStartedDate(Date startedDate) {
        this.startedDate = startedDate;
    }

    @Column(name = "ENDED_DATE")
    public Date getEndedDate() {
        return endedDate;
    }

    public void setEndedDate(Date endedDate) {
        this.endedDate = endedDate;
    }

    @Column(name = "CREATED", updatable = false)
    public Date getCreated() {

        return created;
    }

    public void setCreated(Date created) {
        this.created = created;

    }

    @Column(name = "CREATEDBY", updatable = false)
    public String getCreatedBy() {

        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;

    }

    @Column(name = "UPDATED")
    public Date getUpdated() {

        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;

    }

    @Column(name = "UPDATEDBY")
    public String getUpdatedBy() {

        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;

    }

    @Column(name = "USE_YN")
    public String getUseYn() {
        return useYn;
    }


    public void setUseYn(String useYn) {
        this.useYn = useYn;
    }
}
